package net.baikentools.model;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class ClassEntity extends EntityBase implements Serializable {

	@XmlElement
	private String baseType;
	@XmlElement
	private String interfaces;

	@XmlElementWrapper(name = "fields")
	@XmlElement(name = "fieldEntity")
	private List<FieldEntity> fields;

	@XmlElementWrapper(name = "properties")
	@XmlElement(name = "propertyEntity")
	private List<PropertyEntity> properties;

	@XmlElementWrapper(name = "methods")
	@XmlElement(name = "methodEntity")
	private List<MethodEntity> methods;

	public void setFields(List<FieldEntity> fields) {
		this.fields = fields;
	}

	public List<FieldEntity> getFields() {
		return fields;
	}

	public void setProperties(List<PropertyEntity> properties) {
		this.properties = properties;
	}

	public List<PropertyEntity> getProperties() {
		return properties;
	}

	public void setMethods(List<MethodEntity> methods) {
		this.methods = methods;
	}

	public List<MethodEntity> getMethods() {
		return methods;
	}

	public void setBaseType(String baseType) {
		this.baseType = baseType;
	}

	public String getBaseType() {
		return baseType;
	}

	public void setInterfaces(String interfaces) {
		this.interfaces = interfaces;
	}

	public String getInterfaces() {
		return interfaces;
	}

}
